export default {
  state: {
    menu: [],
    currnetMenu: [],
    isCollapse: false
  },
  mutations: {
    selectMenu(state, val) {
      if (val.name === "home") {
        state.currnetMenu = "home";
      } else {
        state.currnetMenu = val;
      }
    },
    changeCollapse(state) {
      state.isCollapse = !state.isCollapse;
    }
  },
  actions: {}
};
